// tabBarComponent/tabBar.js
const app = getApp();
Component({
  /**
   * 组件的属性列表
   */
  properties: {
    tabbar: {
      type: Object,
      value: {
        "backgroundColor": "#ffffff",
        "color": "#979795",
        "selectedColor": "#1c1c1b",
        "list": [
          {
            "pagePath": "pages/index/index",
            "iconPath": "icon/icon_home.png",
            "selectedIconPath": "icon/icon_home_HL.png",
            "text": "首页"
          },
          {
            "pagePath": "pages/middle/middle",
            "iconPath": "icon/icon_release.png",
            "isSpecial": true,
            "text": "发布"
          },
          {
            "pagePath": "pages/mine/mine",
            "iconPath": "icon/icon_mine.png",
            "selectedIconPath": "icon/icon_mine_HL.png",
            "text": "我的"
          }
        ]
      }
    }
  },

  /**
   * 组件的初始数据
   */
  data: {
    // isIphoneX: app.globalData.systemInfo.model == "iPhone X" ? true : false,
    isIphoneX:true,
  },

  /**
   * 组件的方法列表// tabBarComponent/tabBar.js
const app = getApp();
Component({
  /**
   * 组件的属性列表
   */
  properties: {
    tabbar: {
      type: Object,
      value: {
        "backgroundColor": "#ffffff",
        "color": "#979795",
        "selectedColor": "#1c1c1b",
        "list": [
          {
            "pagePath": "pages/spaceHomePage/spaceHomePage",
            "text": "觅书",
            "iconPath": "/img/icon-findbook.png",
            "selectedIconPath": "/img/icon-findbook1.png"
          },
          {
            "pagePath": "pages/found/found",
            "text": "发现",
            "iconPath": "img/Restaurant1.png",
            "selectedIconPath": "img/Restaurant.png"
          },
          {
            "pagePath": "/pages/shareTherelease/shareTherelease",
            "text": "共享/发布",
            "iconPath": "pages/img/Restaurant1.png",
            "selectedIconPath": "pages/img/Restaurant.png"
          },
          {
            "pagePath": "pages/publicWelfare/publicWelfare",
            "text": "公益",
            "iconPath": "pages/img/friend1.png",
            "selectedIconPath": "pages/img/friend.png"
          },
          {
            "pagePath": "pages/mine/mine",
            "text": "我的",
            "iconPath": "pages/img/mine1.png",
            "selectedIconPath": "pages/img/mine.png"
          }
        ]
      }
    }
  },

  /**
   * 组件的初始数据
   */
  data: {
    // isIphoneX: app.globalData.systemInfo.model == "iPhone X" ? true : false,
  },
  /**
   * 组件的方法列表
   */
  // methods: {
  //   shareTherelease:{
  //     wx.navigateTo({
  //       url: '',
  //     })
  //   }
  // },
  methods: {
    shareTherelease(e) {
      console.log(e.currentTarget.dataset.url);
      // wx.navigateTo({
      //   url: e.currentTarget.dataset.url
      // })
    }
  }

})

